package com.yanggeng.demo.beginnerguidedemo.bean;

import java.io.Serializable;

/**
 * 最近几个月消费实体
 * Created by yanggeng on 2017/8/14.
 */

public class ConsumeMonthBean implements Serializable {

    public ConsumeMonthBean() {
    }

    public ConsumeMonthBean(String date, String amount) {
        this.amount = amount;
        this.date = date;
    }

    public ConsumeMonthBean(String date, float amount) {
        this.date = date;
        this.amount = String.valueOf(amount);
    }

    private String amount;
    private String date;

    @Override
    public String toString() {
        return "ConsumeMonthBean{" +
                "amount='" + amount + '\'' +
                ", date='" + date + '\'' +
                '}';
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    private void initConsume(String date, Float amount) {
        this.date = date;
        this.amount = String.valueOf(amount);
    }
}
